<?php echo $this->doctype('XHTML1_STRICT'); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<?php 
$this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')
                 ->appendHttpEquiv('Content-Language', 'en-US');             
                 
echo $this->headMeta() . "\n";

$this->headTitle($this->config->user->appTitle->val)
     ->headTitle(strip_tags($this->title))
     ->headTitle()->setSeparator(' - ');

echo "\n";
     
echo $this->headTitle() . "\n\n";

?>
<!-- <meta name="viewport" content="width=device-width" />-->
<!-- <meta name="viewport" content="initial-scale=2.3, user-scalable=no" />-->
<link href="<?php echo $this->baseUrl(); ?>/css/sign.css" media="screen" rel="stylesheet" type="text/css" />

<?php $googleKeys = Internal_Keys::get('google'); ?>

<script type="text/javascript" src="http://www.google.com/jsapi?key=<?php echo $googleKeys['jsapi']; ?>"></script>
<script>
google.load("feeds", "1");
</script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/scripts/jquery.marquee.js"></script>

<!-- 
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/scripts/jquery.plugin.easing.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/scripts/jquery.frameReady.js"></script>
-->
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/scripts/jquery.plugin.cycle.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl(); ?>/scripts/sign.js?v=<?php echo time();?>"></script>


</head>
<body>
    <input type="hidden" name="baseUrl" id="baseUrl" value="<?php echo $this->baseUrl(); ?>" />
    <input type="hidden" name="slidestreamId" id="slidestreamId" value="<?php echo $this->slidestreamId; ?>" />
    <input type="hidden" name="manualView" id="manualView" value="<?php echo ($this->manualView) ? 'true' : 'false'; ?>" /> 
    <?php if ($this->isRegistered || $this->manualView) : ?>
    <div id="signContainer">
        <?php echo $this->layout()->content; ?>
    </div>
    <?php else : ?>
    <div id="notRegistered">
        Not registered!
    </div>
    <?php endif; ?>
    <div id="marqueeContainer"></div>
</body>
</html>